package com.hey.baseapplication.model;

import com.hey.baseapplication.bean.User;

import rx.Subscription;

/**
 * Created by Hey on 16/12/15.
 */

public interface ILoginModel extends  BaseModel{


    Subscription login(String username,String password,OnLoginListener loginListener );
//    void login(String username,String password,OnLoginListener loginListener );

    interface  OnLoginListener{
         void loginSuccess(User user);
         void loginFailed(String err);

    }
}


